﻿// Copyright (c) 2011 Blue Onion Software, All rights reserved
namespace BlueOnionSoftware.Bloget
{
    internal class Summary : View
    {
        internal Summary(Bloget bloget)
            : base(bloget)
        {
        }

        protected override string RootClassId()
        {
            return "summary-view";
        }

        protected override void ShowView()
        {
            if (Bloget.IsAdministrator == false)
            {
                var passwordForm = new PasswordView(Bloget);
                passwordForm.Show();
                return;
            }

            Bloget.Page.MaintainScrollPositionOnPostBack = true;
            MainMenu.ShowMenu(Bloget);

            Bloget.WriteLine("<h2>Dashboard</h2><hr/>");
        }
    }
}